<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.anhry.app.safety.util.Util"%>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>隐患标准列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/dbdialog/lhgdialog.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/util.js"></script>
	<script type="text/javascript">
		function opdlg(id){
   			infoDialog('yhInfo','隐患详细信息','800','400','<%=path%>/zczb/zc_yhShow.action?yhId='+id+'');
		}
	</script>
	<style>
		* html body {padding:0px 0px 6px 0px;}
	</style>
  </head>
  
  <body>
	<div  class="body-box">
		<div id="container">
		  	<table border="0" cellpadding="0" cellspacing="0" class="mytable" id="mytable">
		   		<thead>
			    	<tr class="fixedHeaderTr">
			     		<th width="20%">隐患类型</th>
			     		<th width="32%">自查标准</th>
			     		<th width="8%">隐患级别</th>
			     		<th width="8%">发现时间</th>
			     		<th width="8%">隐患描述</th>
			     		<th width="8%">是否整改</th>
			     		<th width="8%" title="如隐患已经整改则该时间为整改完成时间，否则为整改期限">整改时间</th>
						<th width="8%">整改措施</th>
			    	</tr>
		   		</thead>
			   	<tbody>
			   		<s:if test="%{objList.size>0}">
			   			<s:iterator value="objList" id="obj" status="x">
				   			<tr>
					     		<td align="center">${obj.yhType1Name}&nbsp;${obj.yhType2Name}&nbsp;${obj.yhType3}&nbsp;${obj.yhType4}</td>
					     		<td align="left">${obj.yhInfo }</td>
					     		<td align="center">
					     			<s:if test="%{#obj.yhType==0}">无隐患</s:if>
					     			<s:if test="%{#obj.yhType==1}"><font color="red"><a href="javascript:void(0)" onclick="opdlg('${obj.id }');" title="点击查看隐患信息">一般隐患</a></font></s:if>
					     			<s:if test="%{#obj.yhType==2}"><font color="red"><a href="javascript:void(0)" onclick="opdlg('${obj.id }');" title="点击查看隐患信息">重大隐患</a></font></s:if>
					     		</td>
					     		<s:if test="%{#obj.yhType==0}">
						     		<td align="center"></td>
						     		<td align="center"></td>
						     		<td align="center"></td>
						     		<td align="center"></td>
						     		<td align="center"></td>
					     		</s:if>
					     		<s:else>
						     		<td align="center"><s:date name="#obj.yhFxTime" format="yyyy-MM-dd"/> </td>
						     		<td align="center">${obj.yhQk }</td>
						     		<td align="center">${obj.yhIsZg==0?'<font color="red">否</font>':'是' }</td>
						     		<td align="center"><s:if test="%{#obj.yhIsZg==0}"><s:date name="#obj.yhZgTime" format="yyyy-MM-dd"/></s:if><s:else><s:date name="#obj.yhWcTime" format="yyyy-MM-dd"/></s:else> </td>
						     		<td align="center">
						     			<s:if test="%{#obj.yhZgType==1}">立即整改</s:if>
						     			<s:if test="%{#obj.yhZgType==2}">限期整改</s:if>
						     			<s:if test="%{#obj.yhZgType==3}">停产停业整顿</s:if>
						     		</td>
					     		</s:else>
					    	</tr>
			   			</s:iterator>
			    	</s:if>
			    	<s:else>
				    	<tr>
				     		<td align="center" colspan="8">无隐患数据</td>
				    	</tr>
			    	</s:else>
			   	</tbody>
		  	</table>
	 	</div>
	</div>
  </body>
  <s:if test="%{tip!=null}">
    	<script>
    		alert('${tip}');
    	</script>
    </s:if>
</html>
